﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using ExtAspNet;
using Common;
using SCM.Logic;
namespace Web
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnLogin_Click(object sender, EventArgs e)
        {
            M_SupplierBll supBll = new M_SupplierBll();

            if (supBll.IsSupplier(txtUserName.Text.Trim(), txtPassowrd.Text.Trim()))
            {
                FormsAuthentication.RedirectFromLoginPage(txtUserName.Text, true);
                LogHelper.Info(txtUserName.Text+" login");
                //Response.Redirect("/Accounting/default.aspx");
            }
            else
            {
                Alert.Show("用户名或密码错误");
            }
            
        }
    }
}
